package com.entity;

import java.util.List;

public class Grade {

    private int gid;
    private String name;

    private List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public List<Student> getStudents() {
        return studentList;
    }


    public  Grade(){}
    public  Grade(int gid,String name){
        this.gid = gid;
        this.name = name;

    }
    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gid=" + gid +
                ", name='" + name + '\'' +
                '}';
    }
}
